﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminIndexMaster.master" AutoEventWireup="true" CodeFile="Admin_AdsClickRecorde.aspx.cs" Inherits="Admin_Admin_AdsClickRecorde" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script src="Js/Function.js" type="text/javascript"></script> 
    <table class="nick"><tr><td colspan="7" class="tit">快速查找</td></tr>
        <tr>
            <td class="ltd" style="width:10%;">日期：</td>
            <td class="rtd" style="width:20%;">
                <asp:TextBox ID="TxtInputTime" onfocus="show_cele_date(this,'','',this)" runat="server" /></td>
            <td class="ltd"style="width:10%;">来自IP：</td>
            <td class="rtd" style="width:20%;">
                <asp:TextBox ID="TxtIP" runat="server" /></td>
            <td class="ltd"style="width:10%;">会员：</td>
            <td class="rtd" style="width:20%;"><asp:TextBox ID="TxtUserName" runat="server" /></td>
            <td class="rtd">
                <asp:Button ID="Button3" runat="server" Text="查 询" OnClick="OnSelect" /></td>
        </tr>
    </table>
    
    <asp:GridView id="GridView1" runat="server" CssClass="adminlist" OnRowDataBound="GridView1_RowDataBound" RowStyle-HorizontalAlign="Center" DataKeyNames="ID" AutoGenerateColumns="False" AllowPaging="True">
        <Columns>
                <asp:TemplateField HeaderStyle-Width="40px">
                    <HeaderTemplate>
                        <input value="0" name="selectall" type="checkbox" onclick="SelectAllCheckboxes(this,'IDS');" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input type="checkbox" name="IDS" id="IDS" value="<%#Eval("ID") %>" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CreateTime" HeaderText="发生日期" ItemStyle-Width="150px"></asp:BoundField>
                <asp:BoundField DataField="ComeIP" HeaderText="来自IP" ItemStyle-Width="100px"></asp:BoundField>
                <asp:BoundField DataField="AddPoint" HeaderText="得到积分" ItemStyle-Width="80px"></asp:BoundField>
                <asp:HyperLinkField DataNavigateUrlFields="UserID" DataTextField="UserName" DataNavigateUrlFormatString="Admin_UserDetail.aspx?UserID={0}" HeaderText="用户ID" ItemStyle-Width="100Px" />
                <asp:TemplateField HeaderText="来源地址">
                    <ItemTemplate>
                        <div style="white-space:normal; word-break:break-all;"><asp:Literal ID="comeurl" runat="server" Text='<%# Eval("comeurl") %>' /></div>
                    </ItemTemplate>
                </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            <tr>
		<th scope="col" style="width:40px;"><input value="0" name="selectall" type="checkbox" /></th>
		<th scope="col">发生日期</th>
		<th scope="col">来自IP</th>
		<th scope="col">得到积分</th>
		<th scope="col">用户ID</th>
		<th scope="col">来源地址</th>
	    </tr>
	    <tr><td colspan="6">暂无信息！</td></tr>
        </EmptyDataTemplate>
    </asp:GridView>
    <div class="page"><asp:Label ID="PagePanel" runat="server" /></div>

    <div class="div_btm">
        <asp:Button ID="Button2" runat="server" Text="删除选定" OnClick="DeleteSelect" OnClientClick="return confirm('确定删除选定的数据库吗？')" />
    删除<asp:TextBox ID="TextBox1" runat="server" Width="40px" />天前数据<asp:Button ID="Button1"
        runat="server" Text=" 确 认 " OnClick="DeleteAll" OnClientClick="if(ctl00_ContentPlaceHolder1_TextBox1.value!='')return confirm('确定删除'+ctl00_ContentPlaceHolder1_TextBox1.value+'天前的数据吗？');else return false;" />
    </div>

</asp:Content>